<template>
<!--客房修改-->
  <div class="/SPUManagement">
    <el-breadcrumb separator-class="el-icon-arrow-right" style="font-size: 16px;">
      <el-breadcrumb-item :to="{ path: '/sys-admin/index' }">
        <i class="el-icon-s-promotion"></i> 酒店客房后台管理首页
      </el-breadcrumb-item>
      <el-breadcrumb-item>客房管理</el-breadcrumb-item>
      <el-breadcrumb-item>新增客房</el-breadcrumb-item>
    </el-breadcrumb>
    <el-divider></el-divider>
    <div>
      <el-button type="primary" icon="el-icon-s-tools" @click="dialogFormVisible1 = true">
        修改客房
      </el-button>
      <el-button type="primary" icon="el-icon-circle-plus" @click="dialogFormVisible2 = true">
        新增客房
      </el-button>
    </div>
    <el-dialog title="修改客房" :visible.sync="dialogFormVisible1">
      <el-form :model="form">
        <el-form-item label="客房号" :label-width="formLabelWidth">
          <el-select v-model="form.number" placeholder="请选择需要修改的客房号">
            <el-option label="101" value="shanghai"></el-option>
            <el-option label="102" value="shanghai"></el-option>
            <el-option label="103" value="shanghai"></el-option>
            <el-option label="104" value="shanghai"></el-option>
            <el-option label="105" value="shanghai"></el-option>
            <el-option label="106" value="shanghai"></el-option>
            <el-option label="107" value="shanghai"></el-option>
            <el-option label="108" value="shanghai"></el-option>
            <el-option label="109" value="shanghai"></el-option>
            <el-option label="110" value="shanghai"></el-option>
            <el-option label="111" value="shanghai"></el-option>
            <el-option label="112" value="shanghai"></el-option>
            <el-option label="113" value="shanghai"></el-option>
            <el-option label="114" value="shanghai"></el-option>
            <el-option label="115" value="shanghai"></el-option>
            <el-option label="116" value="shanghai"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="客房类型" :label-width="formLabelWidth">
          <el-select v-model="form.type" placeholder="请选择活动区域">
            <el-option v-for="i in roomTypeArr" :value="i.type">{{i.type}}</el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="客房参数样板" :label-width="formLabelWidth">
          <el-input  style="width: 300px;"></el-input>
          <span style="margin: 0 10px;">入住天数</span>
          <el-input  style="width: 300px;"></el-input>
        </el-form-item>
        <el-form-item label="客房参数样板" :label-width="formLabelWidth">
          <el-input  style="width: 300px;"></el-input>
          <span style="margin: 0 10px;">入住天数</span>
          <el-input  style="width: 300px;"></el-input>
        </el-form-item>
        <el-form-item label="客房参数样板" :label-width="formLabelWidth">
          <el-input  style="width: 300px;"></el-input>
          <span style="margin: 0 10px;">入住天数</span>
          <el-input  style="width: 300px;"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible1 = false">取 消</el-button>
        <el-button type="primary" @click="dialogFormVisible1 = false">确 定</el-button>
      </div>
    </el-dialog>
    <!----------------------------修改客房模块------------------------------->
    <el-dialog title="新增客房" :visible.sync="dialogFormVisible2">
      <el-form :model="form">
        <el-form-item label="客房号" :label-width="formLabelWidth">
          <el-input v-model="form.num" autocomplete="off" style="width: 300px;"></el-input>
        </el-form-item>
        <el-form-item label="客房类型" :label-width="formLabelWidth">
          <el-select v-model="form.type" placeholder="请选择活动区域">
            <el-option v-for="i in roomTypeArr" :value="i.type">{{i.type}}</el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible2 = false">取 消</el-button>
        <el-button type="primary" @click="dialogFormVisible2 = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {

      roomDataTable: false,
      roomTypeArr: [
        {type: '大床房'},
        {type: '双床房'},
        {type: '电竞房'},
        {type: '亲子房'},
        {type: '豪华房'},
        {type: '经济房'},
      ],
      checked: true,
      dialogTableVisible1: false,
      dialogFormVisible1: false,
      dialogTableVisible2: false,
      dialogFormVisible2: false,
      form: {
        name: '',
        type: '',
        number: ''
      },
      formLabelWidth: '120px',
    }
  },
  methods: {
    chooseRoom() {
      this.roomDataTable = true
    },
  }
}
</script>

<style>
* {
  margin: 0;
  border: none;
}
</style>